package com.csdj.t309springboot.common;

/**
 * 缓存相关的常量
 */
public class CacheConstant {

    public static final String HEADER_UID = "uid";
    public static final String HEADER_TOKEN = "token";


    //在redis中保存token的键名的前缀
    public static final String TOKEN_PREFIX = "token_";

    //token在缓存中的存活时间 以秒为单位
    public static final int TOKEN_CACHE_TIME = 3600;

    //ehcache中缓存用户信息的缓存名称
    public static final String CACHE_NAME_USER = "UserCache";
}
